<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'register.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.md5.js"></script>
   
    <script type="text/javascript">		
		function passwordMd(){
			var pass = document.getElementById("password").value;
			var w = $.md5(pass);
			//alert(w);
			document.getElementById("password").value=w;
		}
	</script>
    

  </head>
  
  <body>
     <h1>注册</h1>
     <form action="<%=basePath%>client/interface_register" method="post">
     	用户名：<input type="text" name="user.userName"><br>
     	密码：<input type="password" name="user.password"  id="password" onChange="passwordMd();"><br>
     	公司：<input type="text" name="user.company"><br>
     	公司的邮箱：<input type="text" name="user.email"><br>
     	电话：<input type="test" name="user.phone"><br>
     	<input type="submit" value="提交">
     </form>
     
     
  </body>
</html>
